package com.ybkj.daijia.server.dockingsupervise.zhuanche;

import java.io.Serializable;
import java.util.Date;

public class JgxxMessage implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;
    private String licence;//网络预约出租汽车经营许可证号
    private String adminCode;//服务机构所在地的行政区划
    private String agency;//服务机构名称
    private String agencyCode;//服务机构代码
    private String agencyAddress;//服务机构地址
    private String agencyPeople;//服务机构负责人姓名
    private String agencyTel;//负责人联系电话
    private String agencyManagerName;//服务机构管理人姓名
    private String managerTel;//管理人联系电话
    private String postalAddress;//服务机构行政文书送达邮寄地址
    private String agencyEmergencyTel;//服务机构紧急联系电话
    private String agenctCreateDate;
    private Date created;
    private Date updated;
    private String appKey;
    private String type = Type.MOREQ_JGXX;
    //公司信息 临时字段
    private String companyName;//公司名称
    private String identifier;//统一社会信用代码
    private String address;//注册地行政区划代码
    private String businessScope;//经营范围
    private String contactAddress;//通讯地址
    private String economicType;//经营业户经济类型
    private String regCapital;//注册资本
    private String legalName;//法定代表人
    private String legalID;//法定代表人身份证号
    private String LegalPhone;//法定代表人电话
    private String legalPhoto;

    //公司营运规模信息
    private int flag;
    private long vehicleNum;//平台注册网约车辆数
    private long driverNum;//平台注册驾驶员数
    //平台公司服务机构
    private String mailAddress;
    //公司经营许证
    private String certificate;
    private String operationArea;//经营区域
    private String ownerName;
    private String organization;//经营许可证发证机构
    private String startDate;//经营许可证有效期起
    private String stopDate;//经营许可证有效期止
    private String certifyDate;//经营许可证初次发证日期
    private String state;

    public String getMailAddress() {
        return mailAddress;
    }

    public void setMailAddress(String mailAddress) {
        this.mailAddress = mailAddress;
    }

    public String getCertificate() {
        return certificate;
    }

    public void setCertificate(String certificate) {
        this.certificate = certificate;
    }

    public String getOperationArea() {
        return operationArea;
    }

    public void setOperationArea(String operationArea) {
        this.operationArea = operationArea;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    public long getVehicleNum() {
        return vehicleNum;
    }

    public void setVehicleNum(long vehicleNum) {
        this.vehicleNum = vehicleNum;
    }

    public long getDriverNum() {
        return driverNum;
    }

    public void setDriverNum(long driverNum) {
        this.driverNum = driverNum;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBusinessScope() {
        return businessScope;
    }

    public void setBusinessScope(String businessScope) {
        this.businessScope = businessScope;
    }

    public String getContactAddress() {
        return contactAddress;
    }

    public void setContactAddress(String contactAddress) {
        this.contactAddress = contactAddress;
    }

    public String getEconomicType() {
        return economicType;
    }

    public void setEconomicType(String economicType) {
        this.economicType = economicType;
    }

    public String getRegCapital() {
        return regCapital;
    }

    public void setRegCapital(String regCapital) {
        this.regCapital = regCapital;
    }

    public String getLegalName() {
        return legalName;
    }

    public void setLegalName(String legalName) {
        this.legalName = legalName;
    }

    public String getLegalID() {
        return legalID;
    }

    public void setLegalID(String legalID) {
        this.legalID = legalID;
    }

    public String getLegalPhone() {
        return LegalPhone;
    }

    public void setLegalPhone(String legalPhone) {
        LegalPhone = legalPhone;
    }

    public String getLegalPhoto() {
        return legalPhoto;
    }

    public void setLegalPhoto(String legalPhoto) {
        this.legalPhoto = legalPhoto;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLicence() {
        return licence;
    }

    public void setLicence(String licence) {
        this.licence = licence == null ? null : licence.trim();
    }

    public String getAdminCode() {
        return adminCode;
    }

    public void setAdminCode(String adminCode) {
        this.adminCode = adminCode == null ? null : adminCode.trim();
    }

    public String getAgency() {
        return agency;
    }

    public void setAgency(String agency) {
        this.agency = agency == null ? null : agency.trim();
    }

    public String getAgencyCode() {
        return agencyCode;
    }

    public void setAgencyCode(String agencyCode) {
        this.agencyCode = agencyCode == null ? null : agencyCode.trim();
    }

    public String getAgencyAddress() {
        return agencyAddress;
    }

    public void setAgencyAddress(String agencyAddress) {
        this.agencyAddress = agencyAddress == null ? null : agencyAddress.trim();
    }

    public String getAgencyPeople() {
        return agencyPeople;
    }

    public void setAgencyPeople(String agencyPeople) {
        this.agencyPeople = agencyPeople == null ? null : agencyPeople.trim();
    }

    public String getAgencyTel() {
        return agencyTel;
    }

    public void setAgencyTel(String agencyTel) {
        this.agencyTel = agencyTel == null ? null : agencyTel.trim();
    }

    public String getAgencyManagerName() {
        return agencyManagerName;
    }

    public void setAgencyManagerName(String agencyManagerName) {
        this.agencyManagerName = agencyManagerName == null ? null : agencyManagerName.trim();
    }

    public String getManagerTel() {
        return managerTel;
    }

    public void setManagerTel(String managerTel) {
        this.managerTel = managerTel == null ? null : managerTel.trim();
    }

    public String getPostalAddress() {
        return postalAddress;
    }

    public void setPostalAddress(String postalAddress) {
        this.postalAddress = postalAddress == null ? null : postalAddress.trim();
    }

    public String getAgencyEmergencyTel() {
        return agencyEmergencyTel;
    }

    public void setAgencyEmergencyTel(String agencyEmergencyTel) {
        this.agencyEmergencyTel = agencyEmergencyTel == null ? null : agencyEmergencyTel.trim();
    }

    public String getAgenctCreateDate() {
        return agenctCreateDate;
    }

    public void setAgenctCreateDate(String agenctCreateDate) {
        this.agenctCreateDate = agenctCreateDate;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey == null ? null : appKey.trim();
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getStopDate() {
        return stopDate;
    }

    public void setStopDate(String stopDate) {
        this.stopDate = stopDate;
    }

    public String getCertifyDate() {
        return certifyDate;
    }

    public void setCertifyDate(String certifyDate) {
        this.certifyDate = certifyDate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JgxxMessage other = (JgxxMessage) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getLicence() == null ? other.getLicence() == null
            : this.getLicence().equals(other.getLicence()))
            && (this.getAdminCode() == null ? other.getAdminCode() == null
            : this.getAdminCode().equals(other.getAdminCode()))
            && (this.getAgency() == null ? other.getAgency() == null
            : this.getAgency().equals(other.getAgency()))
            && (this.getAgencyCode() == null ? other.getAgencyCode() == null
            : this.getAgencyCode().equals(other.getAgencyCode()))
            && (this.getAgencyAddress() == null ? other.getAgencyAddress() == null
            : this.getAgencyAddress().equals(other.getAgencyAddress()))
            && (this.getAgencyPeople() == null ? other.getAgencyPeople() == null
            : this.getAgencyPeople().equals(other.getAgencyPeople()))
            && (this.getAgencyTel() == null ? other.getAgencyTel() == null
            : this.getAgencyTel().equals(other.getAgencyTel()))
            && (this.getAgencyManagerName() == null ? other.getAgencyManagerName() == null
            : this.getAgencyManagerName().equals(other.getAgencyManagerName()))
            && (this.getManagerTel() == null ? other.getManagerTel() == null
            : this.getManagerTel().equals(other.getManagerTel()))
            && (this.getPostalAddress() == null ? other.getPostalAddress() == null
            : this.getPostalAddress().equals(other.getPostalAddress()))
            && (this.getAgencyEmergencyTel() == null ? other.getAgencyEmergencyTel() == null
            : this.getAgencyEmergencyTel().equals(other.getAgencyEmergencyTel()))
            && (this.getAgenctCreateDate() == null ? other.getAgenctCreateDate() == null
            : this.getAgenctCreateDate().equals(other.getAgenctCreateDate()))
            && (this.getCreated() == null ? other.getCreated() == null
            : this.getCreated().equals(other.getCreated()))
            && (this.getUpdated() == null ? other.getUpdated() == null
            : this.getUpdated().equals(other.getUpdated()))
            && (this.getAppKey() == null ? other.getAppKey() == null
            : this.getAppKey().equals(other.getAppKey()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLicence() == null) ? 0 : getLicence().hashCode());
        result = prime * result + ((getAdminCode() == null) ? 0 : getAdminCode().hashCode());
        result = prime * result + ((getAgency() == null) ? 0 : getAgency().hashCode());
        result = prime * result + ((getAgencyCode() == null) ? 0 : getAgencyCode().hashCode());
        result =
            prime * result + ((getAgencyAddress() == null) ? 0 : getAgencyAddress().hashCode());
        result = prime * result + ((getAgencyPeople() == null) ? 0 : getAgencyPeople().hashCode());
        result = prime * result + ((getAgencyTel() == null) ? 0 : getAgencyTel().hashCode());
        result = prime * result + ((getAgencyManagerName() == null) ? 0
            : getAgencyManagerName().hashCode());
        result = prime * result + ((getManagerTel() == null) ? 0 : getManagerTel().hashCode());
        result =
            prime * result + ((getPostalAddress() == null) ? 0 : getPostalAddress().hashCode());
        result = prime * result + ((getAgencyEmergencyTel() == null) ? 0
            : getAgencyEmergencyTel().hashCode());
        result = prime * result + ((getAgenctCreateDate() == null) ? 0
            : getAgenctCreateDate().hashCode());
        result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
        result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
        result = prime * result + ((getAppKey() == null) ? 0 : getAppKey().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", licence=").append(licence);
        sb.append(", adminCode=").append(adminCode);
        sb.append(", agency=").append(agency);
        sb.append(", agencyCode=").append(agencyCode);
        sb.append(", agencyAddress=").append(agencyAddress);
        sb.append(", agencyPeople=").append(agencyPeople);
        sb.append(", agencyTel=").append(agencyTel);
        sb.append(", agencyManagerName=").append(agencyManagerName);
        sb.append(", managerTel=").append(managerTel);
        sb.append(", postalAddress=").append(postalAddress);
        sb.append(", agencyEmergencyTel=").append(agencyEmergencyTel);
        sb.append(", agenctCreateDate=").append(agenctCreateDate);
        sb.append(", created=").append(created);
        sb.append(", updated=").append(updated);
        sb.append(", appKey=").append(appKey);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
